home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
graphics
/
magps402.zip
/
USE.DOC
< prev
Wrap
Text File
|
1996-04-25
|
16KB
|
285 lines
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒ ▒▒
▒▒ PICTOPS (PICture TO PostScript file) power conversion program ▒▒
▒▒ All Rights Reserved ▒▒
▒▒ Version 4.02 Revision 24/04/96 ▒▒
▒▒ Copyright (C) 1995-1996 by TerSoftWare DNP IHEP Russia ▒▒
▒▒ Created by Igor L. Vassiliev ▒▒
▒▒ Author may be reached as: ▒▒
▒▒ E-mail: vasiliev_i@mx.ihep.su ▒▒
▒▒ ╔═══════╗ ╔═══════╗ Fax: (007)(095)-230-2337 ▒▒
▒▒ ║ ║ ║ Department Of Neutrino Physics ▒▒
▒▒ ║ ║ ║ To: Igor L. Vassiliev ▒▒
▒▒ ║ ║ ╚═══════╗ Mail: P.O.Box 142284 Russia ▒▒
▒▒ ╠═══════╜ ║ Moscow region, Protvino ▒▒
▒▒ ║ ┌┐┌─ ║ Lesnoj boulvar 12-74 ▒▒
▒▒ ║ ─┼┘└─ ╚═══════╝ To: Igor L. Vassiliev ▒▒
▒▒ ▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
*PURPOSE*
To convert image files to compressed PostScript-2 file format.
(PostScript is a trademark of Adobe Systems, Incorporated.)
*FEATURES*
PICTOPS V4.02 is power conversion program to convert image files to COLOR,
GRAY and biLevel PostScript file format. Analogous programs are unknown.
The following the base of PostScript implementations are used.
I) Involved PostScript compression.
PICTOPS will compress (PostScript program will decompress) image data
by CCITTFaxEncode, LZWEncode or RunLengthEncode and then by ASCIIHexEncode
or ASCII85Encode filters. Also, it is possible to create BINARY PostScript
file without ASCIIHex or ASCII85 encoders (PostScript file will be not
ASCII-printable in this case). Output from PICTOPS may have much small
size than standard PostScript outs from other programs with simple Level-1.
In most cases, PKZIP or ARJ cannot compress PostScript out from PICTOPS
more than 5-20% !
II) Involved PostScript colour implementations.
Supported simple 5-operand form of the (gray)image and 7-operand form of
colorimage. Also, for index modes, image dictionaries which are
a more general means for specifying parameters to the image operator are used.
The image operator has a 1-operand form in which the operand is an image
dictionary. In case with image dictionary setcolorspace operator will be used
and data into the PostScript file will be presented as color indexes with
color palette.
Image sample in the 'out-PostScript-file' may consists of 1,2,4,8 and 24(RGB)
bits per component. CMYK images will be translated to RGB images.
PostScript image-source data may be provided by string, procedure or filter.
*NOTE*
If PostScript device HAVE NOT ANY IMPLEMENTATIONS OF LEVEL-2, then the program
automatically will be running as PostScript LEVEL-1 !
For example. If PICTOPS was ran with /zRLE and /c options, and 'in-Image-file'
has color-index palette, then (by descend):
1) If PostScript program detected RunLengthDecode filter and detected that
there is setcolorspace operator - will be FAST PS-Run with PostScript
filter and (color)image with dictionary.
2) If setcolorspace operator was not detected, but was detected colorimage
operator and RunLengthDecode filter - will be FAST PS-Run with PostScript
filter and colorimage.
3) if RunLengthDecode filter was not detected, but was detected colorimage
operator - will be PS-Run with no PostScript filter and with colorimage.
4) if colorimage operator was not detected, but PostScript filter was
detected - will be FAST PS-Run with PostScript filter and with (gray)image.
5) if PostScript filter and colorimage operator was not detected - will be
PS-run with no PostScript filter and with (gray)image.
Another words, PostScript run will be work in the any cases !
*REQUIREMENTS*
Program requires an IBM PC/AT/fully compatible computer, MS-DOS 3.30 or greater
and from 180 to 450 Kb of free conventional memory.
Any Intel processor from i86(88).But 66MHz and better is recommended for speed.
Program will running without any XMS/EMS (If presented so will be ignored).
*USAGE*
pictops [options] [d:path]in-Image-file [[d:path][out-PostScript-file.ps]]
*IMPORT*
BMP - MS-Windows 3.1 Bitmap Format. BMP is the native bitmap file
format of the Microsoft Windows environment.
+ 1,4,8 and 24 bits/pixel
+ BI_RGB,BI_RLE4 and BI_RLE8.
GIF - Graphics Interchange Format. GIF is the Copyright property of
CompuServe Incorporated.
+ 1,2,3,4,5,6,7 and 8 bits/pixel
+ GIF87a and GIF89a modifications
ICO - MS-Windows Icon Format.
+ 1,4 and 8 bits/pixel.
PCX - ZSoft Paint.
+ 1,4,8 and 24 bits/pixel
PBM - Portable Bitmap. Extended Portable Bitmap Utilities (PBMPLUS).
+ 1 bit/pixel
+ binary subtype only
PGM - Portable Greymap.
+ 8 bits/pixel
+ binary subtype only
PPM - Portable Pixmap file format.
+ 24 bits/pixel
+ binary subtype only
RLE - The same that compressed BMP.
+ 4 and 8 bits/pixel
+ BI_RLE4 and BI_RLE8.
TGA - Truevision (Targa) File Format. TGA is the native file format
of the Truevision Incorporated.
+ 8,15,16,24,32 bits/pixel
+ 1,2,3,9,10,11 subtype images
TIF - Tag Image File Format. TIFF is the native file format
of the Aldus Developers Desk.
+ 'II' and 'MM' byte order
+ BytesPerStrip (Any length. May be more than 64K)
+ RowsPerStrip (Any length. Unused)
+ 1,2,4,8,24,32 bits/pixel
+ Compression
+ No compression (1)
+ CCITT Group 3 1D, Modified Huffman (2)
- Group 3 Fax (3)
- Group 4 Fax (4)
+ LZW (5)
+ Horizontal differencing (Predictor)
+ For any bits number supported
- JPEG (6)
+ PackBits (32773)
+ PhotometricInterpretation
+ biLevel and GrayScale (0,1)
+ RGB and RGBA (2)
+ Palette color (3)
- Transparency mask (4)
+ CMYK (5)
+ 12 inks are max
- YCbCr (6)
- CIELab (8)
*NOTE*
Import file may have any extention. File type will be detected automatically.
*EXPORT*
Color, Gray or biLevel compressed or not 'out-PostScript-file' within Level-1
and Level-2, if have no error messages received.
*NOTE*
If name 'out-PostScript-file' is not specified and /sXXX option is absent,
then the file type will be as PostScript with name [d:path]in-Image-file.ps
*OPTIONS*
The all command options must be preceded either '-' or '/' character.
The options are described as follows:
/zFAX - Import image data will be encoded at first by means of
PostScript FAX (Modified Huffman compression. Group 3,1-D) filter and
then through PostScript ASCII85Encode filter, which will be extend
binary data to ASCII printable chars as 4:5
*NOTE* In most cases, effect from compression will be for mono
image only !
*NOTE* If width of image is too large, PostScript error message
may be received: /rangecheck in --.filter_CCITTFaxDecode--
/zLZW - Import image data will be encoded at first by means of
PostScript LZW (Lempel-Ziv-Welch) filter and then
through PostScript ASCII85Encode filter, which will be extend
binary data to ASCII printable chars as 4:5
/zRLE - Import image data will be encoded at first by means of
PostScript RLE (Run-Length-Encode) filter and then
through PostScript ASCII85Encode filter, which will be extend
binary data to ASCII printable chars as 4:5
/zWOC - Without PostScript compression (by default)
Import image data will be encoded through ASCIIHexEncode
filter e.g. each binary byte will be presented by two ASCII
printable hex-digits. Extention is as 1:2
/sPS - Set output as PostScript (by default)
/sEPS - Set output as Encapsulated PostScript
/sEPSI - Set output as Encapsulated PostScript Interchange (EPS with preview)
*NOTE* Option /sEPSI is not available in version 4.xx
/L2 - To force PostScript Level-2 only. Program will NOT detect in
PostScript device whether there is Level-2 or not.
/g - To force grayscale PostScript output (by default)
/c - To force color PostScript output
/i - Background inversion (if possible)
*NOTE* If Image type is:
biLevel - directly bits inversion (Background inverse)
Gray - directly bits inversion (Negative)
Index - Inversion of the first Palette-Index (Background inverse)
RGB /g - Translate to GrayScale and bits inversion (Negative)
RGB /c - Not applicable
/b - To force binary PostScript out.
(ASCIIHexEncode or ASCII85Encode filters will be not implemented)
*NOTE* Output PostScript file will be NOT ASCII printable !
/AD - To force PostScript out to scale to real image size (by default)
*NOTE* If image size exceed sizes A4-Europe either by width or by
height or both, A4-Europe format will be done automatically.
/A4E - To force PostScript out to scale to A4 Europe standard 210mm x 279mm.
(Left and Right white margin by 14 mm. Up and Bottom by 28 mm)
*NOTE* Available with /sPS option only !
/A4U - To force PostScript out to scale to A4 USA standard 8.5" x 11".
(Left and Right white margin by 0.67". Up and Bottom by 0.75")
*NOTE* Available with /sPS option only !
/R - PostScript out will be 90-rotated (Landscape). Default is Portrait.
*NOTE* Available with /sPS option only !
*NOTE* If used together with /A4X options, so the rotate will be
done at first then scale.
/o - Overwrite PostScript output if it exists without prompt.
/t - Turn on time of PostScript encoding
/cr - Turn on compress ratio
/wo - Turn off warning messages
/n=x - Ico-Image number [x=1:7]
/h,? - this Help
*USAGE EXAMPLE*
1) C:\>pictops sample
Image file 'sample' will be translated into the grayscale PostScript
file 'sample.ps' with no PostScript compression, picture is centered,
size default.
(Equivalent is: C:\>pictops /zWOC /sPS /AD /g sample sample.ps)
2) C:\>pictops /zRLE /R /A4U /c /b c:\tmp1\sample *
Image file 'c:\tmp1\sample' will be translated into the binary, color
PostScript file 'c:\sample.ps' with PostScript RLE compression,
picture 90-rotated and scaled to A4 USA standard.
3) C:\>pictops /L2 /sEPS c:\tmp1\sample.pcx
Image file 'c:\tmp1\sample.pcx' will be translated into the grayscale
Encapsulated PostScript file 'c:\tmp1\sample.eps' without PostScript
compression, with Level-2 codes only, picture is centered, size default.
*RECOMENDATIONS TO USE*
Although PICTOPS have enough big collection of warning-messages about
suspicion in corrupted image files, nevertheless it is recomended before to run
output file on the PostScript printer, BE SURE that your PostScript file has
valid format. For example, it may be done by GS.EXE or by any other viewer.
(Recommended to use GS386.EXE instead GS.EXE, because GS.EXE sometimes invalid
displayed large (more than 3000x3000) RGB images)
*NOTE*
If 'in-Image-file' has Color-Index-Palette consisting of the N-entrances
and during Color-PS-Run will occure byte which has meaning more than N, then
PostScript error message may be received: /rangecheck in --getinterval--
or: /rangecheck in --get--. PICTOPS not give error message, because
I have no desire to watch such cases !
*NOTE*
Ghostscript Version 54.0 Rev 2.6.1. 05/28/93 (may be and other versions)
has some errors in PostScript Filters. Some detected errors:
╔═══════════════╦════════╦════════════════════════════════════════════════════╗
║ Filter name ║ Errors ║ Description ║
╠═══════════════╬════════╬════════════════════════════════════════════════════╣
║ ║ ║ Sometimes it don't read terminator sign '>' after ║
║ASCIIHexDecode ║ YES ║ data. Without '>' always is okay. ║
║ ║ ║ (PICTOPS don't write this sign) ║
╟───────────────╫────────╫────────────────────────────────────────────────────╢
║ASCII85Decode ║ NO ║ No errors detected ║
╟───────────────╫────────╫────────────────────────────────────────────────────╢
║CCITTFaxDecode ║ NO ║ No errors detected (Group 3,1-D) ║
╟───────────────╫────────╫────────────────────────────────────────────────────╢
║ ║ ║ Sometimes, data from file are not reading to end ║
║LZWDecode ║ YES ║ calling error: /undefined in ABC... ║
║ ║ ║ Where ABC... are data from PS-file. More often this║
║ ║ ║ take place upon monotonous and continuous images. ║
╟───────────────╫────────╫────────────────────────────────────────────────────╢
║RunLengthDecode║ NO ║ No errors detected ║
╚═══════════════╩════════╩════════════════════════════════════════════════════╝
Your action in error cases:
1) EITHER
Remove comment (percent sign) in the line:
%/Check_Filter false def
In this case PostScript-run will be with no Filters.
(File must be done without /b and /L2 options, of course !)
OR
2) Do make run PICTOPS with other filter.
*REGISTRATION*
PICTOPS is inexpensive shareware. If you find that PICTOPS is useful and
continue using it after a trial period of 20 days, you are encouraged to pay
a small registration fee. When you register, you will receive the last version
of PICTOPS and your registration number. Registration entitles you continue
using the current version and all future versions. The registration number
will remove any limitation functions in the unregistered version of the
current and the future releases.
To register your copy of PICTOPS, please, send me your request to:
E-mail: vasiliev_i@mx.ihep.su
Unregistered version has one limitation - the maximum resolution of an
'in-Image-file' is 640x480. The limitation will be removed in the registered
version.
╔═════════════════════════════════════════════════════════════════════════════╗
║ *WARNING* ║
║ YOU ARE USING PICTOPS AT YOUR OWN RISK ! THE AUTHOR (Igor L. Vassiliev) ║
║ IS NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THE USE OF PICTOPS OR BY THE ║
║ INABILITY TO USE PICTOPS. IF YOU ARE NOT SURE ABOUT THIS, OR IF YOU DON'T ║
║ ACCEPT THIS, THEN DO NOT USE PICTOPS ! ║
╚═════════════════════════════════════════════════════════════════════════════╝